<?php
App::uses('Theme', 'Model');
$this->TioCachas->addKendo();
$this->Html->script('controllers/Themes/admin.js?1', array('block' => 'scriptBottom'));
$appBosch = new stdClass();
$appBosch->tests = $tests;
$appBosch->testId = $testId;
$appBosch->crud = $this->TioCachas->urlsCRUD($appBosch->testId);
$appBosch->urlTests = $this->Html->url(array('controller' => 'Tests', 'action' => 'admin'));
$appBosch->urlAreas = $this->Html->url(array('action' => 'admin'));
$appBosch->urlThemes = $this->Html->url(array('controller' => 'Themes', 'action' => 'admin'));
$appBosch->types = Theme::getTypes();
?>
<script type="text/x-kendo-template" id="templateToolbar">
    <div class="toolbar">
    <span class="pull-left">
    <a class="k-button k-button-icontext k-grid-add" href="">
    <span class="k-icon k-add"></span>
    Agregar tema
    </a>
    </span>
    <span class="pull-right">
    <label for="origen">Entrenamiento:</label>
    <input type="search" id="origen" style="width: 150px"/>
    </span>
    </div>
</script>
<div id="grid"></div>
<?php $this->start('jsVars'); ?>
<script type="text/javascript">
    var appBosch = <?php echo json_encode($appBosch); ?>;
</script>
<?php
$this->end();
